package com.xlr.excel.vo;

import com.xlr.excel.util.excel.annotation.ExcelField;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @Author: xlr
 * @Date: Created in 下午10:40 2019/2/19
 */
@Data
public class ExcelSourseVo implements Serializable{

    @ExcelField( title = "year",align= 2,sort= 0)
    private String year;

    @ExcelField( title = "month",align= 2,sort= 0)
    private String month;

    @ExcelField( title = "blank",align= 2)
    private Integer blank = 0;

    @ExcelField( title = "retail&active",align= 2)
    private Integer active = 0;

    @ExcelField( title = "retail& terminated",align= 2)
    private Integer terminated = 0;

    @ExcelField( title = "preactivation&waived",align= 2)
    private Integer waived = 0;

    @ExcelField( title = "SUM",align= 2)
    private Integer sum = 0;

    public Integer getSum(){
        return blank+active+terminated+waived;
    }
}
